﻿using MongoDB.Bson;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Server.Resource;

namespace Server.Database
{
    [Serializable]
    public class LogDB
    {
        public ObjectId Id { get; set; }
        public string Action { get; set; }
        public string Info { get; set; }

        private long _time = 0;

        public long Time
        {
            get
            {
                if (_time == 0)
                    _time = Utility.DateTimeToLong(DateTime.Now);

                return _time;
            }
            set
            {
                _time = value;
            }
        }

    }
}
